//
//  NBA.swift
//  Sports
//
//  Created by tiger on 2017/10/14.
//  Copyright © 2017年 Meigabay. All rights reserved.
//

import UIKit

//联赛
public class NBA {
    
    public static let shared: NBA = NBA()
    
    //MARK: -  联赛部门
    //联赛人事部
    public private(set) var personnelDept: NBAPersonnelDept!
    //联赛媒体部
    public private(set) var mediaDept: NBAMediaDept!
    //联赛财务部
    public private(set) var finaceDept: NBAFinanceDept!
    //联赛运营部
    public private(set) var operationDept: NBAOperationDept!
    //俱乐部管理部
    public private(set) var clubManagerDept: NBAClubManagerDept!
    //联赛裁判部
    public private(set) var refereeDept: NBARefereeDept!
    //联赛事务部
    public private(set) var affairsDept: NBAAffairsDept!
    //联赛比赛管理
    public private(set) var gameDept: NBAGameDept!
    //球员部门
    public private(set) var playerDept: NBAPlayerDept!
    //球员工会
    public private(set) var playerUnionDept: NBAPlayerUnionDept!
    //联赛规则
    public private(set) var ruleDept: NBARuleDept!
    
    public func start() {
        self.initPersonnelDept()
        self.initMediaDpt()
        self.initFinaceDept()
        self.initOperationDept()
        self.initClubManagerDept()
        self.initGameDept()
        self.initRefereeDept()
        self.initAffiarsDept()
        self.initPlayerDept()
        self.initPlayerUnionDept()
        self.initRuleDept()
    }
    
    private func initPersonnelDept() {
        self.personnelDept = NBAPersonnelDept()
    }
    
    private func initMediaDpt() {
        self.mediaDept = NBAMediaDept()
    }
    
    private func initFinaceDept() {
        self.finaceDept = NBAFinanceDept()
    }
    
    private func initOperationDept() {
        self.operationDept = NBAOperationDept()
    }
    
    private func initClubManagerDept() {
        self.clubManagerDept = NBAClubManagerDept()
    }
    
    private func initRefereeDept() {
        self.refereeDept = NBARefereeDept()
    }
    
    private func initAffiarsDept() {
        self.affairsDept = NBAAffairsDept()
    }
    
    private func initGameDept() {
        self.gameDept = NBAGameDept()
    }
    
    private func initPlayerDept() {
        self.playerDept = NBAPlayerDept()
    }
    
    private func initRuleDept() {
        self.ruleDept = NBARuleDept()
    }
    
    private func initPlayerUnionDept() {
        self.playerUnionDept = NBAPlayerUnionDept()
    }
}
